package Work;

import java.util.Arrays;

public class Test8 {
    public static void main(String[] args) {
        int[] array = {1,2,3};
        System.out.println(Arrays.toString(transForm(array)));
    }
    public static int[] transForm(int[] array) {
        for (int i = 0; i < array.length; i++) {
            array[i]*=2;
        }
        return array;
    }
}
